<template>
	<div class="orderState">
		<view class="content" :class="is_border?'is_border':''">
			<view class="left">
				<image :src="iconUrl" mode="widthFix"></image>
			</view>
			<view class="right">
				<text>{{orderState}}</text>
				<text>{{endTime}}</text>
			</view>
		</view>
	</div>
</template>

<script>
export default {
	name:'orderState',
	data(){
		return{
			
		}
	},
	props:{
		iconUrl:{
			type:String,
			required:true
		},
		orderState:{
			type:String,
			default:''
		},
		endTime:{
			type:String,
			default:''
		},
		is_border:{
			type:Boolean,
			default:true
		}
	},
	methods:{
		
	}
}
</script>

<style scoped lang="scss">
	.orderState{
		background-color: #fff;
		.is_border{
			border-bottom: 1rpx solid #eee;
		}
		.content{
			height: 143rpx;
			display: flex;
			align-items: center;
			.left{
				width: 80rpx;
				height: 80rpx;
				background: #3989ff;
				border-radius: 10rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-right: 23rpx;
				image{
					width: 46rpx;
				}
			}
			.right{
				display: flex;
				flex-direction: column;
				text:first-child{
					font-size: 28rpx;
					font-weight: 500;
					color: #333333;
					margin-bottom: 18rpx;
				}
				text:last-child{
					font-size: 24rpx;
					font-weight: 500;
					color: #999999;
				}
			}
		}
	}
</style>
